/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.es.api;

import com.pingan.haofang.searchcloud.api.IndexRowData;

import java.util.List;
import java.util.Set;

/**
 * 搜索结果
 *
 * @author zhangbi617
 * @date 2017-07-31
 */
public class SearchResultDTO {
    /**
     * 查询结果总数
     */
    private long totalFound;

    /**
     * 查询耗时
     */
    private long time;

    /**
     * 返回结果大小
     */
    private long resultSize;

    /**
     * 数据
     */
    private List<IndexRowData> result;

    /**
     * 结果列
     */
    private Set<String> resultColumns;

    public long getTotalFound() {
        return totalFound;
    }

    public void setTotalFound(long totalFound) {
        this.totalFound = totalFound;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public long getResultSize() {
        return resultSize;
    }

    public void setResultSize(long resultSize) {
        this.resultSize = resultSize;
    }

    public List<IndexRowData> getResult() {
        return result;
    }

    public void setResult(List<IndexRowData> result) {
        this.result = result;
    }

    public Set<String> getResultColumns() {
        return resultColumns;
    }

    public void setResultColumns(Set<String> resultColumns) {
        this.resultColumns = resultColumns;
    }

    @Override
    public String toString() {
        return "SearchResultDTO{" +
                "totalFound=" + totalFound +
                ", time=" + time +
                ", resultSize=" + resultSize +
                ", result=" + result +
                ", resultColumns=" + resultColumns +
                '}';
    }
}
